German parliament votes to extend nuclear power amid energy crisis