Federal regulations setting a minimum of 21 years old for purchasing handguns from licensed dealers violate the Second Amendment, a federal appeals court ruled Tuesday.