Stocks advance, U.S. dollar retreats as China drops quarantine rule