Passengers of a German high-speed ICE train spent more than six hours stuck in a tunnel near Vienna before being freed.