Complex sentence: Josh refuses and will go to any lengths to defend his belief in God, but he needs to take this class to meet his academic requirements.
Split into simpler sentences: Josh refuses and will go to anything in order to defend his belief in God. But, he needs to take this class to meet his academic requirements.