Donald Trump’s win challenges the state’s progressive policies on climate, immigration, abortion and LGBTQ rights. Meanwhile, Gavin Newsom may benefit politically.