Govt in knots over gay sex