Judge rules Amazon must reinstate fired warehouse worker