A federal agent who shows up unannounced at a building along a Texas highway might be looking for any number of things: illicit drugs or immigration violations, say, or illegal firearms.

Or fluorescent lights.

Which was what the agent had in mind who walked into the Perfect Cuts salon in San Antonio last July. The lights were violating communications...