Haley signs bill to help keep guns away from mentally ill