Court upholds death sentence in killing of police