Obama pays respects to slain officers, urges unity