Two Weymouth-based ambulance companies have agreed to pay back $6 million to the state for overcharging MassHealth through false claims, the Massachusetts Attorney General’s Office announced Monday.