Police have apologised and agreed compensation with a pro-Palestine protestor after officers wrongly threatened her with arrest at a demonstration.