Battle lines drawn as UK government plans to block Scottish gender bill