Undercover officers posed as passengers, police reveal, hours after taxi union called off strike planned for next month.