Judd Trump ended his 13-year wait for a second UK Championship title after overcoming the dogged challenge of Barry Hawkins at York Barbican.