A rescue package for debt-stricken Puerto Rico has survived a test vote in the Senate, just two days before the island is expected to default on a $2 billion debt payment.