Council agrees to hoist rainbow flag