That's the problem: these congressional committees have their own subpoena power. No judge was involved.
AT&T should have demanded a warrant, signed by a judge. Shame on them.
A boycott of AT&T would be a good start.
All it takes is an anti-Trump puke at Verizon and AT&T who agrees with the Democrats that Trump should be impeached who will say we can skip the legal department and send out what ever they want, who cares about legal niceties like Do they have the authority to ask for these data or not? Who are the numbers assigned to, and does it invoke privilege? That any legal beagle would immediately inquire. Nope, just some low level manager probably got served and caved, gleefully.