An appeals court has upheld Illinois’ ban on assault weapons.