WASHINGTON—The Supreme Court on Monday declined to loosen restrictions that prevent individuals convicted of misdemeanor counts of domestic violence from owning a gun.

The court, in a 6-2 ruling, was unpersuaded by arguments from two Maine men who said their past convictions weren’t the type that should subject them to a federal ban on firearm possession.

One...