Featuring a second-year team option to preserve cap flexibility, the two-year pact rewards Williams’s breakout season.