Prone was an excellent choice
You said that the cleric wanted "to stop [the ghoul from] hitting people and make it easier to hit." The prone condition has the following two applicable features:
- The creature has disadvantage on attack rolls.
- An attack roll against the creature has advantage
if the attacker is within 5 feet of the creature. Otherwise, the attack roll has disadvantage.
It might seem like the "prone" condition doesn't apply because the ghoul is not splayed out on the ground. But keep in mind that "prone" does not always mean knocked down: it's a spectrum of conditions that make movement awkward and inconvenience a creature at short range (while making it harder to hit at a distance). As an example, consider the following rules on Flying Movement (PHB, p. 191):
If a flying creature is knocked prone, has its speed reduced to 0, or is otherwise deprived of the ability to move, the creature falls unless it has the ability to hover or it is being held aloft by magic, such as by the fly spell.
This text indicates that a flying creature can be "prone" while still (supernaturally) flying, which wouldn't make much sense if "prone" only had its traditional meaning.
Jeremy Crawford has described the various ways that the Shove action can be interpreted as something other than a "shove" (like "a throw, slamming into the other person, and so on.") Similarly, "prone" condition could cover a number of conditions that are analogous without actually requiring the creature to be lying down on the ground.
There are other options
If the Cleric was trying ensure the ghoul was not only inconvenienced but also trapped, he could have tried to both Shove the ghoul prone and Grapple it. For example, if he had the Shield Master Feat, he could use the Attack action to grapple the ghoul (with a free hand), and then a bonus action to Shove the ghoul into the wall with your permission that this would mechanically make it prone. This would stop the ghoul from simply using half its movement remove the prone condition. Or if the cleric had the Grappler Feat, he could attempt to "pin" the ghoul to the wall, if it was already grappled by him (again, with a free hand), causing both him and the ghoul to become restrained.
But if the cleric didn't have a Feat or special ability that would permit him to render the ghoul restrained via an Action, I'd be hesitant to let him do so. You'd essentially be giving the cleric the ability to do with one attack what other characters can only do with several (or a Feat). If the cleric had only one attack available (as most classes of cleric do), I think that your decision to declare the ghoul to be "prone" was completely appropriate.