The Liberals have won all three of the federal byelections that were held on Monday.