FedEx and UPS are telling customers they will refund tariffs after the U.S. government deemed the levies illegal.