It's never happened in the UFC, so we don't know what the outcome would be.
If they follow boxing rules, then the champ would lose the title on the scales after missing weight. However, the challenger would still be able to win the belt if he made weight and the fight went ahead.
When Filho missed weight against Sonnen in the their second fight, the WEC made it a non-title three round fight instead. So, who knows?