North Carolina needs to invest in more specialized courts to handle troubled veterans and drug offenders with mental health problems, a state task force said Thursday.