Poor defendants to get better legal aid as state covers more of cost