The currency itself is legal. Being an exchanger for it the government is ever so gently nudging you away from.
But there is still a distinction between monero being banned and the government saying “we don’t believe you can fulfill kyc obligations”. There is a legitimate argument that yes they could that could be made in court, depending on the implementation.