The petitioners, representing members of the community, urged the court to prevent authorities from cancelling transgender ID cards