Jean Casimir-Perier französischer Staatspräsident, Ministerpräsident, Präsident der Nationalversammlung