Portugal could be heading to the polls for a third time in three years as minority government loses vote in parliament.