All this happens without him knowing - they actually install cameras in his apartment and hire this girl to get him to fall in love with her so that she can be in the apartment and present him products without him knowing.
Realism is always subjective in film. There's no such thing as cinema verite.
The end of the trial and the 'not guilty' verdicts on all counts, clearing Michael of all charges, mean that he can now concentrate on the future and his art.