A federal appeals court ruled Friday that New Jersey’s bans on assault firearms and magazines that can hold more than…