The comment from Representative Andy Ogles, a Tennessee Republican, came on the second day of Pride Month.