In Office 365 you can disable password expiration through PowerShell as long as you are not using ADFS.
Once you establish a powershell session to your Office 365 tenant, run:
Set-MsolUser "username" -PasswordNeverExpires $True
To change it for all users, you can use:
Get-MSOLUser | Set-MsolUser -PasswordNeverExpires $True