Al Hoffman Jr., a powerful Republican donor based in Florida, said he would end his contributions to candidates and groups that oppose a ban on military-style weapons.