The relevant parts of FAR25 and AC25-20 require than in the event of a worst case rapid depressurisation, the cabin alt must never exceed 40,000ft and must not be above 25,000ft for more than 2 minutes.
How does this permit operations above 40,000 ft?
The max operating altitude of the 777 is 43,100 ft.