California and Mexico have signed a bilateral pact aimed at advancing cross-border investments in clean energy.