The government of Greek Prime Minister Alexis Tsipras has survived a vote of confidence, paving the way for parliament to ratify an accord he struck last year to end a long dispute over Macedonia's name.