Domestic abuse victims with ‘trapped capital’ should not be denied legal aid, court rules