Gold ends with a loss as the U.S. dollar, stocks rise as tax plan moves forward