Shields throws 2 perfect innings, Rays beat Yanks