Spain’s constitutional court ruled that an independence referendum in Catalonia was unconstitutional, adding weight to government efforts to block the region from breaking away from the rest of the country but not persuading demonstrators demanding the release of two jailed separatist activists.