Cowboys' Romo has surgery, out for Eagles finale