Lawyers argued a case against the city and FreshDirect, an online grocer, as demonstrators outside the Bronx County Courthouse rallied against plans to relocate the company from Queens to the South Bronx.