Four big international companies, including the oil giant Exxon Mobil, said yesterday that they would give Stanford University $225 million over 10 years for research on ways to meet growing energy needs without worsening global warming.