The French government has collapsed Prime Minister Michel Barnier was ousted in no-confidence vote.