More info needed. But am i right to assume the mother of the child claimed you were the dad.... You went through the whole court process, did dna testing etc and you are not the dad?
If that is correct then your solicitor should be able to help with a costs application against the applicant. Legal aid is unlikely to help you..