A D.C. federal judge on Friday denied Afghan and Iraqi nationals’ bid to compel the government to act on their long-pending visa applications, saying the court lacks jurisdiction to issue such relief because it already granted relief under the Administrative Procedure Act.