Horse-trading over social media legislation and a visit from Middle Eastern royalty are on the agenda as federal politicians return to Canberra.