Orioles end hopes of Yankees, Astros