In a decision on Tuesday, state Supreme Court Justice Anar Patel said the city could not claim its climate-conscious residents were sensitive to how fossil fuels cause climate change, only to then be duped by the oil companies’ failure to disclose how their fossil fuel products contributed to it.

“The city cannot have it both ways,” Patel wrote.

Patel found no proof the oil companies and the defendant American Petroleum Institute conducted “greenwashing” campaigns, including statements about clean energy and alternative energy, to boost sales of fossil fuel products in the city.