Siding with environmentalists, a San Francisco judge on Friday said state air regulators can’t proceed with plans for a cap-and-trade scheme for reducing greenhouse gas emissions.