Suit examining motives behind Tennessee’s anti-discrimination law faces critical test