DETROIT — McLaren Health Care Corp. has agreed to pay the federal government more than $7.7 million to resolve alleged violations of provisions of the Controlled Substances Act. U.S. attorneys in Grand Rapids and Detroit announced the civil settlement Tuesday. It follows a years-long investigation by the Drug Enforcement Administration that started after the agency learned an unregistered substance abuse treatment facility was improperly receiving controlled substances from a pharmacy in western Michigan. The government also alleges that McLaren pharmacies in Port Huron and Yale dispensed Schedule II drugs without written prescriptions. The DEA lists morphine, methadone, hydrocodone and fentanyl as examples of Schedule II substances.