Climate bill ‘outcome uncertain’ as Pelosi ‘faces the biggest test yet of her leadership’