US stocks gain ground ahead of last Fed meeting of the year