Thousands of people were expected to attend the funeral of a New York City police officer shot to death along with his partner one week ago in a brazen daylight ambush that shook the city and put an end to large-scale local protests criticizing police following a series of high-profile deaths in police custody.