The shadow work and pensions secretary, who was knocked out of the leadership contest in the second round, has endorsed James Cleverly.