the only way to legally search a house, car or force companies to hand anything over is with a judge signing it off
the article isn't clear about it but it implies that this was not approved by a judge but DHS alone, this is also indicated but the fact that the supona contained a gag order but Google still informed the affected person that _some_ information was hanged over
now some level of cooperation with law enforcement even without a judge is normal to reduce friction and if you love in a proper state of law there is no problem Keith it.
Also companies are to some degree required to cooperate.
What makes this case so problematic is the amount of information shared without a judge order, that ICE tried to gag Google, that Google did delay compliance to give the affected person a chance to take legal action even through they could, and last but but least that this information seems to have been requested for retaliation against protestor which is a big no go for a state of law