These are almost certainly saleried, exempt employees with no “timeclock”.
They were fired for expressing a political opinion and doing so in a way Google did not like.
It is certainly legal for Google to fire them for this because it is legal for Google to fire them for almost any reason. But it’s also pretty certian that there is no way in America to protest your employer in a way where the law would protect you from retaliation.