The anti-sex-trafficking law was signed by President Donald Trump a week after federal authorities charged seven top officials at the website with facilitating prostitution.