Spain's prime minister says invoking constitutional authority over Catalonia was the only way to bring it back in line.