Support for capital punishment has been declining in the US for years over concerns about fairness and racial bias.