The state of California spent about $42 million during Donald Trump's first term, suing the administration more than 120 times, according to the Attorney General's office.