Feds, Connecticut city settle over rejection of mosque plans