Four major automakers said Thursday they had reached an agreement with California on fuel efficiency rules, bypassing a Trump administration effort to strip the state of the right to fight climate change by setting its own standards.