Elon Musk’s autos and energy business said it will replace all affected units for Powerwall 2 customers in the U.S.