Civil rights groups across the United States have withdrawn their support from a major legislative proposal that would outlaw workplace discrimination against sexual minorities, warning that recent legal developments could exempt companies on religious grounds.