I think that you misunderstand. Several states have passed laws that award their EVs to the national winner of the popular vote. So if Trump wins that vote, CA’s EVs go to him under that law, even if every single person in CA voted for his Dem opponent. They not only don’t have to vote for him, they simply won’t - but their EVs may.
So if Trump wins that vote, CAs EVs go to him under that law, even if every single person in CA voted for his Dem opponent.
Which just gives CA Dems an incentive to crawl over razor wire to vote for the Demonrat candidate, which I suspect was the original intention of the law. Considering that California is home to about 1/8 the US population and that Californians vote overwhelmingly Dem, that is bound to have an effect on the national popular vote. And as much as we like to believe a majority of anti-Trump ballots cast in California were from illegal aliens I can tell you from personal experience that there are plenty of Californians who are US citizens and hate Trump.