US stocks end midweek in green amid Fed rate cut expectations