TOKYO, Japan — Rakuten Inc. agreed to buy U.S. rebates website Ebates Inc. in Japan's largest e-commerce deal on record as the operator of the