China, a longtime importer of international waste, has tightened its regulations, weighing on livelihoods domestic and foreign.