A New York state appeals court on Tuesday dismissed state Attorney General Letitia James' lawsuit against Amazon.com Inc over the online retailer's safety protocols for thousands of workers at two New York City facilities.