Setback for president in his attempts to keep his finances secret as lawyer says ‘we’ll be taking this case to the supreme court’