Beijing slapped export controls on 40 entities amid a diplomatic spat that began with Sanae Takaichi’s remarks about Taiwan.