Minnesota shooting suspect faced repeated warnings and allegations. Here’s why he could still carry a gun