Rams rally to edge Eagles