Matt Gay hit the 30-yard game-winning field goal as time expired for the Los Angeles Rams as they beat the Tampa Bay Buccaneers.