The city of Lincoln has sued a Sacramento-area nonprofit over its plans to open a large medical facility for the homeless.