U.S. regulators have approved a first-of-a-kind test that looks for mutations in hundreds of cancer genes at once, giving a more complete picture of what’s driving a patient’s tumor and aiding efforts to match treatments to those flaws.