Newcastle United won the Carabao Cup and secured European qualification in the process.