High Court hearing petitions against law that makes it virtually impossible to force a prime minister to step down; justices look to avoid striking down a Basic Law for first time