An appeals court struck down the first successful federal capital-punishment prosecution in New York State in more than 50 years on Wednesday, overturning the death sentence given to a Staten Island man who was convicted of killing two undercover New York City police detectives in 2003.