The Trump administration is barring federal contractors who use social media to promote their businesses from using it for political campaigns, according to the White House.

The move, which was announced on Thursday, comes in response to complaints by Democrats and consumer advocates who say social media is a tool for political advertising, not for informing consumers about products.

The White House said the order applies to both federal contractors and to the government’s contractors and subcontractors, and does not affect the use of other platforms that allow employees to communicate with their employers.

It comes in the wake of a federal judge’s order in June barring the Trump administration from blocking social media ads from being used to promote the president’s re-election.