In a settlement with civil rights and labor groups, Facebook Inc. announced sweeping changes to its ad platform Tuesday to resolve claims that advertisers for housing, employment and credit opportunities targeted the website’s audiences in a discriminatory basis.

The social media giant announced the settlement Tuesday, rolling out changes to how it manages housing, employment and credit ads on its website. The settlement, which will prohibit advertisers from excluding users on a discriminatory basis, was filed in the U.S. District Court for the Southern District of New York.