Barcelona secured a 1-1 draw against Newcastle United in their Champions League last 16 tie, thanks to a controversial late penalty.