Rays edge Yankees in contentious series opener