NBA commissioner Adam Silver and union executive director Michele Roberts have pledged to work together to take action in the wake of unrest in the country over police shootings.