Defense Secretary Jim Mattis said Tuesday that he rescinded China’s invitation to take part in a multinational Pacific Rim military exercise because Beijing is “out of step with international law” in how it has militarized the islands and reefs in the South China Sea.