Target will spend $20 million to build single-stall private restrooms in all of its U.S. store locations.

The global retail chain announced Wednesday that it will invest in the private stalls in response to protests from customers over Target's policy allowing transgender customers and employees to use the restroom that aligns with their gender identity.

That restroom policy was announced in April. While a lot of the response has been positive, some conservative groups disagreed with the company's stance.

The American Family Association has protested the policy. Earlier this year, the group sent adult men into women's bathrooms to "test" Target's policy.

Despite the protests and a recent drop in stock prices, Target's chief financial officer said the company hasn't seen any noteworthy financial loss from the boycotts.

Target's announcement comes as the General Services Administration announced that its more than 9,000 buildings will allow transgender individuals to use the restroom that corresponds with their gender identity.

The new stalls at Target can be used by anyone and are expected to be completed in all stores by early 2017.