Democrats failed their first big test on climate