China took a major step on Thursday, as it passed a new law restricting the work of foreign organizations, the NYT reports.