Costa Rica 's constitutional court has blocked a referendum that would have let voters decide if same-sex civil unions should be allowed in the Central American country .