The 49ers rewarded linebacker Ahmad Brooks with a multi-year extension that could pay him over $40 million.