There's no contradiction.
A father has the "right" to marry off his minor daughter, as in if he does it, she's married.
Despite that, he's not allowed to do it unless she's old enough to agree and actually agrees.
Similarly, you're not allowed to do various things on Shabbat, but if you do, you've accomplished them. This is obviously true for physical ...