A federal court has thrown out a New Hampshire man’s lawsuit challenging the constitutionality of the government’s health care overhaul, saying he lacked standing to sue because his Medicare coverage will automatically satisfy the law’s insurance mandate.

Harold Peterson, 80, of Nashua, sued President Barack Obama and Congress last year objecting mainly to the law’s requirement that nearly all Americans carry health insurance.