Nothing about this is illegal under patent or any other law, even though no one ever thought of this business model when protecting inventions was asserted into the Constitution.
But the establishment clause in the constitution was intended to prevent the creation of an established church, on the model of the Church of England, not to prevent religious believers from expressing their beliefs in the public realm.