The state of Massachusetts outlawed capital punishment in 1947 and opinion polls had suggested residents favored a life sentence for Tsarnaev.