Appeals Court rules states can restrict concealed weapons