Racing Metro picked up a priceless away win as they edged past play-off rivals Montpellier 17-15 at the Stade Yves du Manoir.