T-Mobile faces a restraining order after a judge ruled against its scraping data practices involving AT&T customer accounts.