Polish Prime Minister Donald Tusk and his liberal coalition government have suffered a defeat in Parliament where a slim majority rejected legislation that would have watered down one of the country's pro-life laws.