Arizona Attorney General Kris Mayes is taking the federal government to court after it suddenly canceled a massive solar energy…