The Rams and Matthew Stafford have agreed to a restructured contract that keeps the quarterback in Los Angeles.