Barcelona's Lamine Yamal struck from the penalty spot with the final kick of the game to salvage a 1-1 draw with Newcastle United.