Generally, the court will either deny the claim or issue a remand (send the case back) to the administrative agency (Social Security’s Appeals Council).  The remand order will state what legal issues warranted the remand to the agency.