Gov. Gavin Newsom had supported the plant, arguing that it was needed as the state grapples with a drought that is expected to worsen in coming years. But opponents said it would kill billions of tiny marine organisms that form the basis of the food chain and called the plant costly and unnecessary.