Many expatriates reach Makkah in the pilgrimage season violating some government rules. Will their pilgrimage be valid? If so, would it be a lesser pilgrimage or a full one?
Islam gives a ruler of a Muslim community the authority to issue orders and promulgate laws, intending to serve the interests of the community, provided that such orders and laws do not violate any Islamic principle, rule or value. Every Muslim in that community must obey and abide by such orders, laws and regulations. Unless they do so, there will be chaos and trouble. For example, the government may issue a rule limiting the speed of motor vehicles on certain roads. Initially, driving at any speed is permissible, but when the government imposes a speed limit on a particular road, observing such speed limit is an Islamic requirement in addition to its being required by law.
The government of Saudi Arabia issued a number of regulations restricting the frequency of offering the pilgrimage and setting certain requirements for obtaining a permit to offer the pilgrimage. Obeying these is obligatory from the Islamic point of view, because they are intended for the public good. However, if a person manages to go on pilgrimage without obtaining the necessary permit, we cannot say that his pilgrimage is invalid.
We say that he must observe the official rules. How God will look at his pilgrimage is up to Him only. This is similar to doing other duties such as prayers while violating some rules that do not relate to their validity. Take the example of a company providing a prayer room for its staff and issuing an order that prayer in other areas is not allowed. If someone prays in his office, can we say that his prayer is invalid?