Britain’s BAE Systems PLC reached settlements totaling almost $500 million with the U.S. Justice Department and the U.K. Serious Fraud Office to resolve longstanding corruption allegations that have dogged one of the world’s biggest defense contractors.