Tokyo stocks end nearly 3% higher after US rebound