The court’s closure will leave one remaining immigration court building in San Francisco by 2027.