A judge ruled that Amazon must reinstate a Staten Island worker who was fired. (New York Times)