Want the latest climate news in your inbox? You can sign up here to receive Climate Fwd:, our new email newsletter.

WASHINGTON — At 5:20 on Tuesday evening, Interior Secretary Ryan Zinke tweeted a photo of himself at the Tallahassee airport with Gov. Rick Scott of Florida, announcing that he had decided, after meeting with Governor Scott, to exempt the state from a new Trump administration plan to open up most of the nation’s coastline to offshore oil drilling.

It was a sudden and unexpected change to a plan that President Trump had celebrated just five days before, and it took lawmakers and governors from both parties by surprise. It also gave Governor Scott, a Republican who is widely expected to run for the Senate this year, a clear political boost in that race. Florida lawmakers of both parties have long opposed offshore drilling, especially after the 2010 Gulf of Mexico oil spill sent tarballs to the shores of a state where the economy relies heavily on tourism. Mr. Zinke’s sudden flip-flop on Florida drilling allows Governor Scott to tout the decision as evidence of his influence with the White House.