A first-of-its-kind deal killed two offshore wind projects and reinvested the funds in fossil fuels. The next day, the nation’s largest offshore wind farm started delivering power.