As a Recruiter who has been in the industry for 11 years, I can tell you that companies are well aware of the going rate for a Recruiter. So whether a contract is signed or not, they know that by telling the Recruiter they would be interested in reviewing and/or interviewing their candidate, they are not only accepting the solicitation (thus can't claim it was unsolicited), they are also indirectly agreeing to pay a fee. If they had concerns about how much that fee would be, they could have asked before any interviews were set up. But it sounds to me like they never had any intention of paying the recruiter, otherwise they would have made sure to address/negotiate fees upfront.
Additionally, I'm sure the Recruiter would be willing to negotiate with them on the fee, especially if the alternative is not getting paid at all.
As you stated, you wouldn't have known of this opportunity without the recruiter's efforts and likewise the company wouldn't have known of your existence without the Recruiter's help. So there is no question that this recruiter is owed a fee. What the company is doing is immoral and should definitely raise some red flags. Throughout my career, I've unfortunately had a couple of companies try to pull a similar move, but was lucky enough that the candidate had my back in those situations and therefore I did receive the fee I deserved.