Calif. reaches deal on National Guard Mexico border mission