Rams blow chances to beat 49ers, settle for OT tie