It isn't necessarily about breaking laws. There are many legitimate reasons to deny service to undercover law enforcement personnel who are often simply looking for ways to boost their agency's revenue through specious allegations. Uber has no legal obligation to do anything for people that do not declare themselves to be law enforcement personnel with special rights.
Not that it will ever stop them, but I often build a clause into the TOS of my websites that law enforcement personnel may not use the site without prior authorization. I have no idea if this will ever stand up in court, but perhaps this clause will, for example, be useful in defeating a search warrant for user information since the suspicion upon which the warrant is based would necessarily have been obtained without authorization unless the government asked for permission to access the site in advance. A healthy disdain for government agents makes for a healthy, free society.
Not that it will ever stop them, but I often build a clause into the TOS of my websites that law enforcement personnel may not use the site without prior authorization. I have no idea if this will ever stand up in court, but perhaps this clause will, for example, be useful in defeating a search warrant for user information since the suspicion upon which the warrant is based would necessarily have been obtained without authorization unless the government asked for permission to access the site in advance. A healthy disdain for government agents makes for a healthy, free society.