NY acting attorney general will get new role