Canadian Prime Minister Mark Carney won a vote on his budget in Parliament that could have triggered a possible election.