Wall Street ends down as megacaps give back gains