Costa Rica has agreed to serve as a "bridge" to repatriate illegal immigrants in the United States, including from India and Central Asia, according to an official release on Tuesday.