US stocks gained on Wednesday with investors looking ahead to the Federal Reserve’s monetary policy decision.